import java.sql.Connection;

public abstract class ConnectionFactory {
	
	public static String driver, url, username, password;
	
	public static ConnectionFactory getFactory(){
	
		driver = "com.mysql.jdbc.Driver";
		url = "jdbc:mysql://localhost/bernalcompany";
		username = "root";
		password = "root";
		
		return new ConnectionFactoryImpl(driver, url, username, password);
	}
	
	public abstract Connection getConnection();
}
